import { businessAxios, datashopAxios } from '@/utils/request'

export const reqSetBannerIntro = (data: any): Promise<any> => {
  return businessAxios({
    url: '/api/datamarket/v2/banner-intro/',
    method: 'post',
    data
  })
}

// v2 restful接口
export const reqGetBannerIntro = (params: any): Promise<any> => {
  return businessAxios({
    url: `/api/datamarket/v2/banner-intro/${params}`,
    method: 'get'
  })
}

// 获取已连接数据库表名及id列表
export const reqDbTables = (params: any): Promise<any> => {
  return datashopAxios({
    url: '/api/datashop/v3/database/ads/tables',
    method: 'get',
    params: params
  })
}
